Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix perspective-workspace webpack compat #1784

Merged
merged 1 commit into from
Apr 18, 2022
Merged

Conversation

texodus
Copy link
Member

@texodus texodus commented Apr 18, 2022

Tree-shaking for neither esbuild nor webpack live up to the kb discount of importing the implementation source .ts files rather than the pre-compiled es6 dist/ versions, ~50kb of difference in perspective-workspace. However, webpack requires yet another custom loader for perspective-webpack-plugin to selectively compile the TypeScript. Rather than add this, this PR instead inlines the @lumino includes in @finos/perspective-workspce/dist/esm.

TL;DR @finos/perspective-workspce works and is 50kb smaller.

@texodus texodus added bug Concrete, reproducible bugs and removed cla-present labels Apr 18, 2022
@texodus texodus merged commit 2e91b3e into master Apr 18, 2022
@texodus texodus deleted the fix-workspace-webpack branch April 18, 2022 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant